import { Inject, Controller, Post, Body } from '@midwayjs/decorator';
import { Context } from '@midwayjs/koa'
import { Redis2Service } from '../service/redis.service';



/**
 * 描述
 */
@Controller('/redis')
export class APIController {
    @Inject()
    ctx: Context;
    @Inject()
    Redis2Service: Redis2Service;


    @Post('/setredis')
    async addnovelitem(@Body() body) {
        return this.Redis2Service.setreids()
    }
    @Post('/getredis')
    async get(@Body() body) {
        return this.Redis2Service.getreids()
    }
}